package com.smart.home.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("家庭成员信息")
public class HomeMembers {

    @ApiModelProperty("家庭ID")
    private Long homeId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("成员角色：OWNER, ADMIN, MEMBER, GUEST")
    private String role;

    @ApiModelProperty("加入时间")
    private LocalDateTime joinedAt;
}
